package main

import "fmt"

func bsort(a []int) {
	for i := 0; i <= len(a); i++ {
		for j := 1; j < len(a); j++ {
			if a[j] < a[j-1] {
				a[j],a[j-1]  = a[j-1],a[j]
			}
		}
	}
}

func main()  {
	b := [...]int{8, 7, 5, 4, 3, 10, 15}
	bsort(b[:])
	fmt.Println(b)
}
